{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=3082
  Verdict: Accepted
}
uses SysUtils, Math;
 
const
	limit:longint=round(1e5)+10;
 
var
	a,b,n,k,bv,t:int64;
	c,mn,mx:char;
	ok:boolean;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(a,b,n);
mn:='A';
mx:='B';
ok:=false;
if b<a then begin
	c:=mx;
	mx:=mn;
	mn:=c;
	t:=a;
	a:=b;
	b:=t;
end;
bv:=0;
k:=0;
while k<=limit do begin
	inc(k,2);
	if b-bv>=a then inc(bv,a) else begin
		bv:=a-b+bv;
		inc(k,2);
	end;
	if bv=n then begin
		ok:=true;
		break;
	end;
end;
c:='>';
if ok then begin
	bv:=0;
	while true do begin
		writeln(c,mn);
		writeln(mn,c,mx);
		if b-bv>=a then inc(bv,a) else begin
			bv:=a-b+bv;
			writeln(mx,c);
			writeln(mn,c,mx);
		end;
		if n=bv then break;
	end;
end else write('Impossible');
end.